﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl" xmlns:my="http://tempuri.org/myXsdSchema.xsd" exclude-result-prefixes="xd" version="1.0">
<xd:doc scope="stylesheet">
<xd:desc>
	<xd:p><xd:b>Created on:</xd:b>Feb 25, 2011</xd:p>            
	<xd:p><xd:b>Author:</xd:b> m.barilla</xd:p>
	<xd:p></xd:p></xd:desc></xd:doc>    
<xsl:output method="text" encoding="UTF-8" />        
<xsl:template match="/">##########Vystup##########                
<xsl:apply-templates select="//my:Contacts/my:Person" />            
</xsl:template>        

<xsl:template match="my:Person">
******************* Osoba ************************
Meno:			<xsl:value-of select="my:Name"/>
Priezvisko:		<xsl:value-of select="my:Surname"/>
Dátum narodenia:		<xsl:value-of select="my:DateOfBirth"/>
Adresy:<xsl:apply-templates select="my:Address"/>
**************************************************    
</xsl:template>        

<xsl:template match="my:Address">        
<xsl:if test="position() != last()">        
	Typ:		<xsl:value-of select="my:Type"/>        
	Ulica, č. :		<xsl:value-of select="my:StreetName"/>, <xsl:value-of select="my:StreetNumber"/>        
	Mesto:		<xsl:value-of select="my:City"/>        
	PSČ:		<xsl:value-of select="my:Zip"/>        
--------</xsl:if>        
<xsl:if test="position() = last()">        
	Typ:		<xsl:value-of select="my:Type"/>        
	Ulica, č. :		<xsl:value-of select="my:StreetName"/>, <xsl:value-of select="my:StreetNumber"/>        
	Mesto:		<xsl:value-of select="my:City"/>        
	PSČ:		<xsl:value-of select="my:Zip"/></xsl:if>    
</xsl:template>

</xsl:stylesheet>